// c:\users\de'l'l\desktop\lkchongxie\重写\pages\tools\bmi\bmi
Page({
    data: {

    },
    onLoad: function(options) {
        console.log(options);
        this.setData({
            title: options.title,
            testId: options.value,
            btn: options.btn,
            bg: options.bg,
        })
    },
    feedback() { // 反馈
        tt.navigateTo({
            url: '/pages/feedback/feedback'
        });
    },
    toTest() {
        let testId = this.data.testId
        console.log(testId);
        if (testId == '1') {
            tt.navigateTo({
                url: '/pages/test/bmi/bmi'
            });
        } else if (testId == '2') {
            tt.navigateTo({
                url: '/pages/test/cos/cos'
            });
        } else if (testId == '3') {
            tt.navigateTo({
                url: '/pages/test/bfr/bfr'
            });
        } else if (testId == '4') {
            tt.navigateTo({
                url: '/pages/test/dcr/dcr'
            });
        } else if (testId == '5') {
            tt.navigateTo({
                url: '/pages/test/hwr/hwr'
            });
        } else if (testId == '6') {
            tt.navigateTo({
                url: '/pages/test/sfh/sfh'
            });
        } else if (testId == '7') {
            tt.navigateTo({
                url: '/pages/test/rcb/rcb'
            });
        }

    },
})